﻿<UserControl xmlns:my="clr-namespace:TextAdventures.Quest.EditorControls"  x:Class="TextAdventures.Quest.EditorControls.IfEditor"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid Name="grid">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <my:IfEditorChild x:Name="ctlChild" />
        <Button Name="cmdAddElseIf" Click="cmdAddElseIf_Click" Grid.Row="1" HorizontalAlignment="Left" Padding="10,3,10,3" Margin="0,5,0,5">Add Else If</Button>
        <Button Name="cmdAddElse" Click="cmdAddElse_Click" Grid.Row="2" HorizontalAlignment="Left" Padding="10,3,10,3" Margin="0,5,0,5">Add Else</Button>
        <my:IfEditorChild Grid.Row="3" x:Name="ctlElse" Margin="0,10,0,0" />
    </Grid>
</UserControl>
